using System;
using System.Collections;
using System.Collections.Generic;
using Framework.Manager;
using UnityEngine;

public class TestCron : MonoBehaviour
{
    private async void Start()
    {
        await CronManager.Instance.Initialize(transform);
        
        CronManager.Instance.Every("testevery", 1, OnEvery, 1);
        CronManager.Instance.After("testafter", 3.5f, OnAfter, 1);
    }

    private void OnDestroy()
    {
        CronManager.Instance.Shutdown();
    }

    private void OnEvery(object count)
    {
        print("=====  Every");
    }

    private void OnAfter(object count)
    {
        print("=====  After");
    }
}
